package metier;

import java.io.Serializable;

import hibernate.EleveRepository;
import bean.EleveBean;
import bean.PhotoBean;

public class EleveBusiness extends BaseBusiness<EleveBean, EleveRepository, Integer> implements Serializable {

	private int id_eleve;
	private String email_eleve;
	private String nom_eleve;
	private String prenom_eleve;
	private String pwd_eleve;
	private String confirm_pwd_eleve;
	private String entreprise_eleve;
	private String ville_eleve;
	private String date_naissance_eleve;
	private int id_photo_profil;

	public EleveBusiness() {
		super(new EleveRepository());
		// TODO Auto-generated constructor stub
	}


	public int getId_eleve() {
		return id_eleve;
	}
	public void setId_eleve(int id_eleve) {
		this.id_eleve = id_eleve;
	}
	public String getEmail_eleve() {
		return email_eleve;
	}
	public void setEmail_eleve(String email_eleve) {
		this.email_eleve = email_eleve;
	}
	public String getNom_eleve() {
		return nom_eleve;
	}
	public void setNom_eleve(String nom_eleve) {
		this.nom_eleve = nom_eleve;
	}
	public String getPrenom_eleve() {
		return prenom_eleve;
	}
	public void setPrenom_eleve(String prenom_eleve) {
		this.prenom_eleve = prenom_eleve;
	}
	public String getPwd_eleve() {
		return pwd_eleve;
	}
	public void setPwd_eleve(String pwd_eleve) {
		this.pwd_eleve = pwd_eleve;
	}

	public String getConfirm_pwd_eleve() {
		return confirm_pwd_eleve;
	}
	public void setConfirm_pwd_eleve(String confirm_pwd_eleve) {
		this.confirm_pwd_eleve = confirm_pwd_eleve;
	}
	public String getEntreprise_eleve() {
		return entreprise_eleve;
	}
	public void setEntreprise_eleve(String entreprise_eleve) {
		this.entreprise_eleve = entreprise_eleve;
	}
	public String getVille_eleve() {
		return ville_eleve;
	}
	public void setVille_eleve(String ville_eleve) {
		this.ville_eleve = ville_eleve;
	}
	public String getDate_naissance_eleve() {
		return date_naissance_eleve;
	}
	public void setDate_naissance_eleve(String date_naissance_eleve) {
		this.date_naissance_eleve = date_naissance_eleve;
	}

	public boolean authentification(EleveBean eleveBean){
		System.out.println(eleveBean+""+_repository);
		return _repository.AuthentificationConnexion(eleveBean);

	}

	/**
	 * @return the id_photo_profil
	 */
	public int getId_photo_profil() {
		return id_photo_profil;
	}

	/**
	 * @param id_photo_profil the id_photo_profil to set
	 */
	public void setId_photo_profil(int id_photo_profil) {
		this.id_photo_profil = id_photo_profil;
	}


}

